export enum Category {
    UNKNOWN,
    COMPOSITE = 1,
    CARD,
    MANG_HE_BA_JI,
    MING_HE_BA_JI,
    YA_KE_LI,
}

export enum Source {
    UNKNOWN,
    CHINA_GOODS = 1,
    CHINA_PRESELL,
    JAPANESE_J_GOODS,
    JAPANESE_C_GOODS,
    JAPANESE_PRESELL,
}

export enum Status {
    UNKNOWN,
    WEI_DAO_HUO = 1,
    XIAN_HUO,
    YU_SHOU_HUO,
}

export function getCategory(category: Category): string {
    switch (category) {
        case Category.COMPOSITE: return '杯垫/冰箱贴/钥匙扣/挂件'
        case Category.CARD: return '卡片/镭射票纸'
        case Category.MANG_HE_BA_JI: return '盲盒吧唧'
        case Category.MING_HE_BA_JI: return '明盒吧唧'
        case Category.YA_KE_LI: return '亚克力立牌'
        default:
            return '其他'
    }
}

export function getSource(source: Source): string {
    switch (source) {
        case Source.CHINA_GOODS: return '国谷现货'
        case Source.CHINA_PRESELL: return '国谷预售'
        case Source.JAPANESE_J_GOODS: return '日谷岛现'
        case Source.JAPANESE_C_GOODS: return '日谷国现'
        case Source.JAPANESE_PRESELL: return '日谷预售'
        default:
            return '其他'
    }
}

export function getStatus(source: Status): string {
    switch (source) {
        case Status.WEI_DAO_HUO: return '未到货'
        case Status.XIAN_HUO: return '现货'
        case Status.YU_SHOU_HUO: return '预售货'
        default:
            return '其他'
    }
}